﻿using System;
using AutoR.Services;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Navigation;
using Prism.Services;

namespace AutoR.ViewModels.Home
{
	// Token: 0x020000D4 RID: 212
	public class StrengthenViewModel : BindableBase, INavigationAware, INavigatedAware, INavigatingAware
	{
		// Token: 0x1700012B RID: 299
		// (get) Token: 0x0600043A RID: 1082 RVA: 0x0004D7CA File Offset: 0x0004B9CA
		private INavigationService NavigationService { get; }

		// Token: 0x1700012C RID: 300
		// (get) Token: 0x0600043B RID: 1083 RVA: 0x0004D7D2 File Offset: 0x0004B9D2
		private IPageDialogService PageDialogService { get; }

		// Token: 0x1700012D RID: 301
		// (get) Token: 0x0600043C RID: 1084 RVA: 0x000408F6 File Offset: 0x0003EAF6
		public GameData Game
		{
			get
			{
				return Runtime.Game;
			}
		}

		// Token: 0x1700012E RID: 302
		// (get) Token: 0x0600043D RID: 1085 RVA: 0x0004D7DA File Offset: 0x0004B9DA
		public DelegateCommand StrengthenShipCommand { get; }

		// Token: 0x0600043E RID: 1086 RVA: 0x0004D7E2 File Offset: 0x0004B9E2
		public StrengthenViewModel(INavigationService navigationService, IPageDialogService pageDialogService)
		{
			this.NavigationService = navigationService;
			this.PageDialogService = pageDialogService;
			this.StrengthenShipCommand = new DelegateCommand(async delegate()
			{
				NavigationParameters parameters = new NavigationParameters
				{
					{
						"stlist",
						this.Game.StrengthenTask.StrengthenShip
					}
				};
				await this.NavigationService.NavigateAsync("ShipMultiSelect", parameters);
			});
		}

		// Token: 0x0600043F RID: 1087 RVA: 0x0004067F File Offset: 0x0003E87F
		public void OnNavigatedFrom(INavigationParameters parameters)
		{
		}

		// Token: 0x06000440 RID: 1088 RVA: 0x0004067F File Offset: 0x0003E87F
		public void OnNavigatedTo(INavigationParameters parameters)
		{
		}

		// Token: 0x06000441 RID: 1089 RVA: 0x0004067F File Offset: 0x0003E87F
		public void OnNavigatingTo(INavigationParameters parameters)
		{
		}
	}
}
